import { Component, Prop, Vue } from 'vue-property-decorator'

@Component
export default class extends Vue {
  // ++++++++++ model ++++++++++
  // ++++++++++ props ++++++++++
  @Prop({ default: [] })
  data!: Array<IMenu>

  // ++++++++++ data ++++++++++
  defaultActive = ''

  // ++++++++++ computed ++++++++++
  // ++++++++++ methods normal ++++++++++
  // ++++++++++ methods event ++++++++++
  // ++++++++++ Lifecycle Hooks ++++++++++
  mounted() {
    this.defaultActive = this.data[0].key
  }

  // ++++++++++ watch ++++++++++
}
